From: Yosef Or Boczko Date: Fri, 11 Mar 2022 10:10:24 +0000 (+0200) Subject: calendar: Fix alignment of world clocks header in RTL X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~480^2^2~52 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=44d819149f16e6f9b8ed7cb243a227ffa7658ce3;p=gnome-shell.git calendar: Fix alignment of world clocks header in RTL Signed-off-by: Yosef Or Boczko Part-of: --- diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index ca98cdd24..bd363f323 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -400,7 +400,10 @@ class WorldClocksSection extends St.Button { x_align: Clutter.ActorAlign.START, text: title, }); - layout.attach(header, 0, 0, 2, 1); + if (this._grid.text_direction === Clutter.TextDirection.RTL) + layout.attach(header, 2, 0, 1, 1); + else + layout.attach(header, 0, 0, 2, 1); this.label_actor = header; for (let i = 0; i < this._locations.length; i++) {